package com.xxx.service;

import com.xxx.entity.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient("CLOUD-PROVIDER-DEPT")
public interface DeptClientService {
    @GetMapping("/dept/list")
    public List<Dept> list();
}
